﻿
<div class="weui-cells__title" ng-hide='1'></div> 
<div class="map-wrapper">
  <amap-main ></amap-main>
</div>
<p ng-click="$ctrl.useAddress()">{{$ctrl.addrInput.formatted_address}}</p>
<p ng-if='!$ctrl.addrInput.formatted_address'>未指定地址</p>
<!-- 上面加一个隐藏的是为了让weui-cells的margin-top=0 -->
<div class="weui-cells weui-cells_form">
 
  <div class="weui-cell weui-cell_vcode">
    <div class="weui-cell__bd">
      <input class="weui-input" type="text" placeholder='输入地址后点击“自动定位”'
      ng-model="$ctrl.addrInput.addr">
    </div>
    <div class="weui-cell__ft">
      <a href="javascript:;" class="weui-vcode-btn"
      ng-click="$ctrl.searchAddr()">自动定位</a>
    </div>
  </div>
    
</div>
